package appapi.dao;

import appapi.Request.CompPageReq;
import appapi.Request.CompReq;
import appapi.entity.Zhongjiao.CompanyDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author djq
 * @date 2023/5/11 14:11
 * @description:
 */

@Mapper
public interface CompanyMapper {
    int deleteByPrimaryKey(Integer compId);

    int deleteByIds(@Param("compIds") List<Integer> compIds);

    int allowDelete(Integer compId);
    int insert(CompanyDto record);

    int insertSelective(CompanyDto record);

    CompanyDto selectByPrimaryKey(Integer compId);

    int updateByPrimaryKeySelective(CompanyDto record);

    int updateByPrimaryKey(CompanyDto record);

    CompanyDto selectByName(String compName);

    List<Map<String,Object>> selectCompList(CompPageReq dto);

    List<Map<String,Object>> selectCompCheckList(CompReq dto);


    Map<String,Object> selectCompDetail(Integer compId);

    List<CompanyDto> selectByCompanyByOrgaId(Long orgaId);

    List<CompanyDto> selectCompLists(CompPageReq req);
}